using UnityEngine;
using UnityEngine.Events;

namespace WorkFlow.Utils
{
    public class OnHideEvent : MonoBehaviour
    {
        [SerializeField] private UnityEvent onHide = new UnityEvent();
        
        public UnityEvent OnHide => onHide;

        private void OnDisable()
        {
            onHide?.Invoke();
        }
    }
}
